package com.itheima.service.impl;

import com.itheima.mapper.ReportMapper;
import com.itheima.service.ReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import java.util.Objects;

@Service
public class ReportServiceImpl implements ReportService {

    @Autowired
    private ReportMapper reportMapper;

    /**
     * 统计上下架商品统计
     *
     * @return
     */
    @Override
    public List<Map<String, Objects>> getProductUpOrDown() {
        return reportMapper.getProductUpOrDown();
    }


    /**
     * 各个状态的商品数量统计
     *
     * @return
     */
    @Override
    public List<Map<String, Objects>> getProductStatus() {
        return reportMapper.getProductStatus();
    }
}
